import matplotlib.pyplot as plt

import numpy as np
import time

fig1 = plt.figure()
for ii in range(30):
	plt.clf()
	plt.plot(range(ii))
	plt.xlim((0,30))
	plt.ylim((0,30))
	fig1.canvas.draw()
	plt.show()
	time.sleep(1)	